package com.wooshow.base.struts;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.wooshow.base.bean.SQLs;
import com.wooshow.base.dao.SQLsDao;

public class SQLsAction extends ActionSupport {

	private static final long serialVersionUID = 1108630994679192790L;

	private List<SQLs> sqls;
	
	private SQLsDao sqlsDao;
	
	public String query() {
		setSqls(getSqlsDao().listSQLs());
		return "query";
	}

	public List<SQLs> getSqls() {
    	return sqls;
    }

	public void setSqls(List<SQLs> sqls) {
    	this.sqls = sqls;
    }

	public SQLsDao getSqlsDao() {
    	return sqlsDao;
    }

	public void setSqlsDao(SQLsDao sqlsDao) {
    	this.sqlsDao = sqlsDao;
    }
	
}
